package com.fancy.projecty.serviceImpl;

import com.fancy.projecty.mapper.*;
import com.fancy.projecty.pojo.WaterRole;
import com.fancy.projecty.service.WaterRoleService;
import com.fancy.projecty.util.ExceptionUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

/**
 * 角色
 */
@Service
@Transactional
@SuppressWarnings("ALL")
public class WaterRoleImpl implements WaterRoleService {
	@Autowired
	private WaterRoleMapper waterRoleMapper;
	@Autowired
	private WaterMenuMapper waterMenuMapper;
	@Autowired
	private WaterRoleMenuMapper waterRoleMenuMapper;
	@Autowired
	private WaterIntermediateRoleMapper waterIntermediateRoleMapper;
	@Autowired
	private WaterAgentMapper waterAgentMapper;


	@Override
	public List<WaterRole> selectRoleAndMenuByLoginId(Integer agentId) {


		return 	this.waterRoleMapper.selectRoleAndMenuByLoginId(agentId);
	}
}
